package com.xh.bussiness.permission.service;



import com.xh.bussiness.permission.bean.request.MenuRequest;
import com.xh.bussiness.permission.model.Menu;
import com.xh.core.service.IBaseService;
import com.xh.core.bean.XhPage;

import java.util.List;


public interface IMenuService extends IBaseService<Menu> {


    /**
     * 分页查询菜单
     * @param page
     * @param bean
     * @return
     */
    public XhPage queryMenuPage(XhPage page, MenuRequest bean);


    /**
     * 查询菜单
     * @param bean
     * @return
     */
    public List queryMenu(MenuRequest bean);


    /**
     * 新增菜单
     * @param bean
     * @return
     */
    public String addMenu(MenuRequest bean);


    /**
     * 修改菜单
     * @param bean
     * @return
     */
    public  String modifyMenu(MenuRequest bean);


    /**
     * 删除菜单
     * @param id
     * @return
     */
    public  String deleteMenu(String id);

    List<Menu> getChild(String id);

    List<Menu> queryMenuTree();
}
